﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="contactus.aspx.cs" Inherits="contactus" %>
<%@ Register TagPrefix="common" TagName="header" Src="~/header.ascx" %>
<%@ Register TagPrefix="common" TagName="footer" Src="~/footer.ascx" %>
<%@ Register TagPrefix="common" TagName="sidebar" Src="~/sidebar.ascx" %>
<%@ Register TagPrefix="common" TagName="secondcontact" Src="~/secondpagecontact.ascx" %>
<%@ Import Namespace="System.Data" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>联系我们 - 超敏仪器</title>
    <link href="assets/css/global.css" rel="stylesheet" />
    <style type="text/css">
        html,body{margin:0;padding:0;}
        .iw_poi_title {color:#CC5522;font-size:14px;font-weight:bold;overflow:hidden;padding-right:13px;white-space:nowrap}
        .iw_poi_content {font:12px arial,sans-serif;overflow:visible;padding-top:4px;white-space:-moz-pre-wrap;word-wrap:break-word}

        .boxstyle {
            background:#f2f2f2;
            border:1px solid #bfbfbf;
            margin-bottom:13px;
        }
        .boxstyle .agencytitle{
            height:30px;text-indent:20px;color:#6abb3b;font-size:14px;font-weight:bold;line-height:30px;display:block;text-align:left;margin-top:18px;
        }
            .boxstyle .agencytitle1 {
                margin-top:0px;
            }
        .boxstyle .address{
            padding-left:20px;
        }
        .h122 {
            height:122px;
        }
        .h95 {
            height:95px;width:49%;
        }
        #agency table th {
             height:30px;text-indent:20px;color:#6abb3b;text-align:left;font-size:14px;
        }
        #agency table td{
            height:20px;text-indent:20px;
        }
    </style>
    <script type="text/javascript" src="/assets/javascript/jquery-1.5.1.min.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
</head>
<body>
    <form id="form1" runat="server">
    <common:header ID="Header1" runat="server"></common:header>
        <div class="commonWrap">
            <a href ="#" class="subBanner">
                <img src="/assets/images/sub-banner.jpg" />
            </a>
            <div class="subSideBar">
            <common:sidebar ID="sidebar" runat="server"></common:sidebar>
            <common:secondcontact ID="secondcontact" runat="server"></common:secondcontact>
            </div>
            <div class="subContent" style="border:0px;">
                <div class="pathleaf">
                    <span style="background:url('/assets/images/place.jpg') no-repeat 14px 8px; width:35px;height:39px;display:inline-block;float:left;"></span>
                    <a href="/">首页</a> &gt; <a href="solution.aspx">联系我们</a>
                </div>
                <div class="" style="width:760px;">
                    <p>&nbsp;</p>
                    <div class="newsDetail" style="min-height:450px;width:720px">
                        <p style="color:#6abb3b;line-height:30px;border-bottom:1px solid #6abb3b;text-indent:20px;font-weight:bold;margin-bottom:20px;font-size:14px;margin-top:10px;">办事处</p>	  
                    <div class="boxstyle h122" id="agency">
                        <table style="width:100%">
                            <tr>
                                <th colspan="2">江苏超敏仪器有限公司（公司总部）</th>
                            </tr>
                            <tr><td style="width:50%;">地址：苏州市高新区竹园路209号创业园五号楼</td><td>传真：0512—66371359</td></tr>
                            <tr><td>邮编：215000      电话：0512—66371109</td><td>全国服务热线：4008601059</td></tr>
                            <tr><td>E-MAIL：marketing@supersense.com.cn</td><td></td></tr>
                        </table>
                    </div> 
                        <div class="boxstyle h95 box_l">
                            <h5 class="agencytitle">上海研发中心</h5>
                            <p class="address">地址：上海市银都路388号C座</p>
                        </div>     
                        <div class="boxstyle h95 box_r">
                            <h5 class="agencytitle">成都研发中心</h5>
                            <p class="address">地址：四川省成都市望江路29号四川大学第一理科楼</p>
                        </div>  
                        <div class="boxstyle h95 box_l">
                            <h5 class="agencytitle">美国德州研发中心</h5>
                            <p class="address">地址：1515 Holcombe Boulevard, Houston, TX 77030</p>
                        </div>  
                        <div class="boxstyle h95 box_r">
                            <h5 class="agencytitle">北京研发中心</h5>
                            <p class="address">地址：北京大兴区兴华大街二段13号盈润大厦4号楼511室</p>
                        </div>  
                        <div class="boxstyle h95 box_l">
                            <h5 class="agencytitle">广东办事处</h5>
                            <p class="address">地址：广州市番禺区大北路永恒大街6-2号</p>
                        </div>     
                        <div class="boxstyle h95 box_r">
                            <h5 class="agencytitle agencytitle1">香港办事处</h5>
                            <p class="address">地址：Unit 705, 7/F, Bio-Informatics Centre, No. 2 Science Park West Avenue, 
Hong Kong Science Park, Shatin, New Territories, Hong Kong</p>
                        </div>   
                            <div style="width:300px; height:450px; float:left;">
                                <div style="text-indent:0.2cm">
<p>江苏超敏仪器有限公司</p>

<p>JIANGSU SUPERSENSE INSTRUMENT CO.,LTD</p>

<p>地址：苏州高新区竹园路209号苏州创业园5号楼1楼</p>

<p>邮编：215011</p>

<p>邮箱：market@supersence.com.cn</p>

<p>电话：0512—66371109</p>

<p>传真：0512—66371359</p>

<p>&nbsp;</p>

<p>服务热线 4008601059</p>

<p align="left">官方微博：<a href="http://weibo.com/chaominyiqi">http://weibo.com/chaominyiqi</a></p>

<p>官方微信：<img border="0" src="http://www.supersense.com.cn/images/weixin.jpg" width="200"></p>
</div>
						    </div>
						    <div id="dituContent" style=" width:420px; height:420px; float:left; margin-top:10px;">
                                
						    </div>
                        </div>
                </div>        
            </div>

    </div>
        <div class="clear"></div>
        <common:footer ID="Footer1" runat="server"></common:footer>
    </form>
    <script type="text/javascript">
        //创建和初始化地图函数：
        function initMap() {
            createMap();//创建地图
            setMapEvent();//设置地图事件
            addMapControl();//向地图添加控件
            addMarker();//向地图中添加marker
        }

        //创建地图函数：
        function createMap() {
            var map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
            var point = new BMap.Point(120.544299, 31.281986);//定义一个中心点坐标
            map.centerAndZoom(point, 16);//设定地图的中心点和坐标并将地图显示在地图容器中
            window.map = map;//将map变量存储在全局
        }

        //地图事件设置函数：
        function setMapEvent() {
            map.enableDragging();//启用地图拖拽事件，默认启用(可不写)
            map.enableScrollWheelZoom();//启用地图滚轮放大缩小
            map.enableDoubleClickZoom();//启用鼠标双击放大，默认启用(可不写)
            map.enableKeyboard();//启用键盘上下左右键移动地图
        }

        //地图控件添加函数：
        function addMapControl() {
            //向地图中添加缩放控件
            var ctrl_nav = new BMap.NavigationControl({ anchor: BMAP_ANCHOR_TOP_LEFT, type: BMAP_NAVIGATION_CONTROL_LARGE });
            map.addControl(ctrl_nav);
            //向地图中添加比例尺控件
            var ctrl_sca = new BMap.ScaleControl({ anchor: BMAP_ANCHOR_BOTTOM_LEFT });
            map.addControl(ctrl_sca);
        }

        //标注点数组
        var markerArr = [{ title: "超敏仪器", content: "我的备注", point: "120.544703|31.282402", isOpen: 0, icon: { w: 23, h: 25, l: 46, t: 21, x: 9, lb: 12 } }
        ];
        //创建marker
        function addMarker() {
            for (var i = 0; i < markerArr.length; i++) {
                var json = markerArr[i];
                var p0 = json.point.split("|")[0];
                var p1 = json.point.split("|")[1];
                var point = new BMap.Point(p0, p1);
                var iconImg = createIcon(json.icon);
                var marker = new BMap.Marker(point, { icon: iconImg });
                var iw = createInfoWindow(i);
                var label = new BMap.Label(json.title, { "offset": new BMap.Size(json.icon.lb - json.icon.x + 10, -20) });
                marker.setLabel(label);
                map.addOverlay(marker);
                label.setStyle({
                    borderColor: "#808080",
                    color: "#333",
                    cursor: "pointer"
                });

                (function () {
                    var index = i;
                    var _iw = createInfoWindow(i);
                    var _marker = marker;
                    _marker.addEventListener("click", function () {
                        this.openInfoWindow(_iw);
                    });
                    _iw.addEventListener("open", function () {
                        _marker.getLabel().hide();
                    })
                    _iw.addEventListener("close", function () {
                        _marker.getLabel().show();
                    })
                    label.addEventListener("click", function () {
                        _marker.openInfoWindow(_iw);
                    })
                    if (!!json.isOpen) {
                        label.hide();
                        _marker.openInfoWindow(_iw);
                    }
                })()
            }
        }
        //创建InfoWindow
        function createInfoWindow(i) {
            var json = markerArr[i];
            var iw = new BMap.InfoWindow("<b class='iw_poi_title' title='" + json.title + "'>" + json.title + "</b><div class='iw_poi_content'>" + json.content + "</div>");
            return iw;
        }
        //创建一个Icon
        function createIcon(json) {
            var icon = new BMap.Icon("http://app.baidu.com/map/images/us_mk_icon.png", new BMap.Size(json.w, json.h), { imageOffset: new BMap.Size(-json.l, -json.t), infoWindowOffset: new BMap.Size(json.lb + 5, 1), offset: new BMap.Size(json.x, json.h) })
            return icon;
        }

        initMap();//创建和初始化地图
</script>
</body>
</html>
